﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HistoryContact.aspx.cs" Inherits="CRM.Web.CallBackManage.HistoryContact" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/pop.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js" defer="defer"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript"  defer="defer" >

        $(document).ready(function() {
        
        
            $('.row').bind("dblclick", function() {
                $(this).find("a[id$='lbtnSelected']").click();
            }).attr("style", "cursor:hand; cursor:pointer;");
            $('.row2').bind("dblclick", function() {
                $(this).find("a[id$='lbtnSelected']").click();
            }).attr("style", "cursor:hand; cursor:pointer;");

//            var scrollHeight = document.body.scrollHeight;
//            if (scrollHeight == 0) {
//                scrollHeight = 300;
//            }
//            window.parent.document.getElementById('frameCustomer').style.height = (scrollHeight + 20) + 'px';

        });
        
        function setValue(customerId, customerCode) {
            var win = null;
            if (window.parent.frameWorkOrder != null) {
                win = window.parent.frameWorkOrder;
                win.SetCustomerInfo(customerId, customerCode);
            }
            if (window.parent.frameVehicle != null) {
                window.parent.frameVehicle.location.href = "VehicleInfo.aspx?CUSTOMERID=" + customerId + "&CUSTOMERCODE=" + customerCode;
            }
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" id="tTitle" style="display: none;">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="相关客户信息列表" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div style="width: 100%">
        <div class="listdiv">
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                AllowSorting="true" PageSize="10"  SortExpressionValue="AUTOID" SortDirectionValue="DESC">
                <Columns>
                    <asp:BoundField DataField="AUTOID" HeaderText="联络编号" SortExpression="AUTOID" />
                    <asp:BoundField DataField="CUSTOMERID" HeaderText="客户编号" SortExpression="CUSTOMERID"  Visible="false" />
                    <asp:BoundField DataField="CUSTOMERNAME" HeaderText="客户姓名" SortExpression="CUSTOMERNAME" />
                    <asp:BoundField DataField="CASEID" HeaderText="记录编号（暂不用）" SortExpression="CASEID" Visible="false" />
                    <asp:BoundField DataField="TASK_ID" HeaderText="活动编号" SortExpression="TASK_ID" Visible="false"/>
                    <asp:BoundField DataField="CALLID" HeaderText="呼叫标识" SortExpression="CALLID" />
                    <asp:BoundField DataField="CONTACTNUMBER" HeaderText="联络号码" SortExpression="CONTACTNUMBER" />
                    <asp:BoundField DataField="CASE_STATUS" HeaderText="联络结果（编码）" SortExpression="CASE_STATUS"  Visible="false" />
                    <asp:BoundField DataField="STATUS" HeaderText="联络结果" SortExpression="STATUS" />
                    <asp:BoundField DataField="REMARKS" HeaderText="描述信息" SortExpression="REMARKS" />
                    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号" SortExpression="CREATEPEOPLEID"  Visible="false" />
                    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人" SortExpression="CREATEPEOPLE" />
                    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间" SortExpression="CREATETIME" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部编码" SortExpression="BUSINESSDIVISIONCODE"  Visible="false" />
                    <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称" SortExpression="BUSINESSDIVISIONNAME" />
                    <asp:TemplateField HeaderText="操作" ShowHeader="False" Visible="false">
                        <ItemTemplate>
                            <div style="white-space: nowrap;">
                                <asp:HyperLink ID="hlModify" runat="server" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>'>详细</asp:HyperLink>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>   
    </form>
</body>
</html>
